package com.sbd.service;


import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @author yuanzheng
 * Reference引用可以使用Pom坐标，或定义路径相同的接口名
 */
@Service
public class UserService {
    @Reference
    TicketService TICKET_SERVICE;

    public void getTicket() {
        String ticket = TICKET_SERVICE.getTicket();
        System.out.println(ticket);
    }

}
